package com.qdxwx.data.mapper.order;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.order.OrderExpress;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface OrderExpressMapper {

    OrderExpress selectById(int id);

    OrderExpress selectByOrderNo(String orderNo);

    int insertOrderExpress(OrderExpress orderExpress);

    int updateOrderExpress(OrderExpress orderExpress);

    int deleteById(int id);

    List<OrderExpress> selectList(@Param("e") OrderExpress orderExpress, @Param("page") PageRequest page);

    long selectCount(@Param("e") OrderExpress orderExpress);

    int updateCombine(long userId1, long userId2);
}
